package com.tzy.for10evalue.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.tzy.for10evalue.dao.TxTestMapper3;
import com.tzy.for10evalue.entity.txtest.TxTest1;
import com.tzy.for10evalue.entity.txtest.TxTest3;
import com.tzy.for10evalue.service.TxTestService3;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tzy
 * @date 2022/6/10 13:53
 */
@Service
public class TxTestService3impl extends ServiceImpl<TxTestMapper3, TxTest3> implements TxTestService3 {
    @Override
    @Transactional(propagation = Propagation.REQUIRED)
    public boolean save() {
        TxTest3 txTest1=new TxTest3();
        txTest1.setName("txTest1");
        return insert(txTest1);
    }
}
